<form id="pagerForm" method="post" action="">
	<input type="hidden" name="pageNum" value="{$pageNum}" />
	<input type="hidden" name="numPerPage" value="{$numPerPage}" />
	<input type="hidden" name="orderField" value="{$orderField}" />
	<input type="hidden" name="orderDirection" value="{$orderDirection}" />
	<input type="hidden" name="keywords" value="{$keywords}" />
	<input type="hidden" name="sfield" value="{$sfield}" />
	<input type="hidden" name="sfield_name" value="order_id,code" />
</form>

<div class="pageHeader">
	<form rel="pagerForm" onsubmit="return navTabSearch(this);" action="" method="post">
		<input type="hidden" name="m" value="{$module_name}" />
		<input type="hidden" name="a" value="{$action_name}" />
	<div class="searchBar">
		<ul class="searchContent">
			<li style="width:210px;">
				<label style="width:60px;">关键字：</label>
				<input type="text" class="autoinput" name="keywords" value="{$keywords}" style="width:120px;"/>
			</li>
			<li style="width:90px;">
			<select name="sfield" class="combox">
				<option value="all" {if $wherefields=='all'}selected="selected"{/if}>全部</option>
				<option value="code" {if $wherefields=='code'}selected="selected"{/if}>出库单号</option>
				<option value="order_id" {if $wherefields=='order_id'}selected="selected"{/if}>订单编号</option>
			</select>
			<input type="hidden" name="sfield_name" value="order_id,code" />
			</li>
			<li style="width:120px;">
				<select name="sel_status" class="combox">
					<option value="ALL" {if $sel_status=='ALL'||empty($sel_status)}selected="selected"{/if}>全部订单状态</option>
<volist name="depotstatus" id="st">
					<option value="{$key}" {if $sel_status==(string)$key}selected="selected"{/if}>{$st}</option>
</volist>					
				</select>
			</li>
			<li style="width:100px;">
				<select name="g_field" class="combox">
					<option value="">--分组模式--</option>
					<option value="0" {if "0"==(string)$g_field}selected="selected"{/if}>不分组</option>
					<option value="code" {if "code"==(string)$g_field}selected="selected"{/if}>出库单号</option>
					<option value="order_id" {if "order_id"==(string)$g_field}selected="selected"{/if}>订单编号</option>
				</select>
			</li>
			<div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div>
			<div class="buttonActive"><div class="buttonContent"><button type="button" onclick="navTab.reload();">刷新 </button></div></div>
		</ul>
	</div>
	</form>
</div>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="icon" target="selectedDo" data="ids[]" rel="Depot_edit_all" href="{:U('Depot/edit')}" title="批量修改状态" warn="请选择一条记录"><span>批量修改状态</span></a></li>
			<li><a class="icon" href="javascript:$.printBox('w_list_print')"><span>打印页面</span></a></li>
		</ul>
	</div>
	<div id="w_list_print">
	<table class="list" width="98%" targetType="navTab" layoutH="96">
		<thead>
			<tr>
				<th width="22"><input type="checkbox" group="ids[]" class="checkboxCtrl"></th>
				<th width="60" orderField="id" {if $orderField=='id'}class="{$orderDirection}"{/if}>编号</th>
				<th width="80" orderField="code" {if $orderField=='code'}class="{$orderDirection}"{/if}>出库单号</th>
				<th width="80">订单</th>
				<th width="300">商品</th>
				<th width="50">数量</th>
				<th width="100" orderField="status" {if $orderField=='status'}class="{$orderDirection}"{/if}>状态</th>
				<th width="120" orderField="ctime" {if $orderField=='ctime'}class="{$orderDirection}"{/if}>创建时间</th>
				<th width="120" orderField="mtime" {if $orderField=='mtime'}class="{$orderDirection}"{/if}>修改时间</th>
				<th width="120">供应商</th>
				<th width="120">操作</th>
			</tr>
		</thead>
		<tbody>
<volist name="list" id="vo">
			<tr target="sid_dv" rel="{$vo['id']}">
				<td><input name="ids[]" value="{$vo['id']}" type="checkbox"></td>
				<td><a title="{$vo['id']}出库单查看" target="navTab" rel="Depot_index_id_{$vo['id']}" href="{:U('Depot/index',array('id'=>$vo['id']))}">{$vo['id']}</a></td>
				<td><a title="{$vo['code']}查看" target="navTab" rel="Depot_index_code_{$vo['code']}" href="{:U('Depot/index',array('code'=>$vo['code']))}">{$vo['code']}</a></td>
				<td><a href="{:U('Depot/index',array('oid'=>$vo['order_id']))}" target="navTab" rel="Depot_index_order_{$vo['order_id']}" title="{$vo['id']}出库单">{$vo['order_id']}</a></td>
				<td>{$product[$vo['product_id']]['product_name']}</td>
				<td>{$vo['number']}</td>
				<td>{$depotstatus[$vo['status']]}</td>
				<td>{if $vo['ctime']=='0'}-{else}{$vo['ctime']|date="Y-m-d H:i:s",###}{/if}</td>
				<td>{if $vo['mtime']=='0'}-{else}{$vo['mtime']|date="Y-m-d H:i:s",###}{/if}</td>
				<td>{if $supnumber[$vo['id']]}{$supnumber[$vo['id']]['num']}{else}0{/if}</td>
				<td>
					<a title="供应商设定" target="dialog" width="580" height="350" rel="Depot_depot_{$vo['id']}" href="{:U('Depot/set_suppliers',array('ids'=>$vo['id']))}" class="btnAdd">供应商</a>
					<a title="修改状态" target="dialog" width="380" height="150" rel="Depot_edit_{$vo['id']}" href="{:U('Depot/edit',array('id'=>$vo['id']))}" class="btnEdit">修改状态</a>
{if $g_field==0}
					<a title="查看出价" target="navTab" rel="Depot_more_{$vo['id']}" href="{:U('Depot/more',array('id'=>$vo['id']))}" class="btnView">查看出价</a>
{elseif $g_field=='code'}
					<a title="查看出价" target="navTab" rel="Depot_more_code_{$vo['code']}" href="{:U('Depot/more',array('code'=>$vo['code']))}" class="btnView">查看出价</a>
{else}
					<a title="查看出价" target="navTab" rel="Depot_more_order_id_{$vo['order_id']}" href="{:U('Depot/more',array('oid'=>$vo['order_id']))}" class="btnView">查看出价</a>
{/if}
				</td>
			</tr>
</volist>
		</tbody>
	</table>
	</div>
<include file="Index:pages" />
</div>

